<!--
 * @Author: your name
 * @Date: 2021-08-16 10:23:17
 * @LastEditTime: 2021-08-16 10:51:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\3-html&css\day11\02-西游记.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background-image: url('./west/bg.jpg');
            background-repeat: repeat-x;
            display: flex;
            justify-content: center;
            padding-top: 400px;
            animation: bgmove 20s infinite linear;
        }
        
        @keyframes bgmove {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: 1920px 0;
            }
        }
        
        body>div {
            width: 200px;
            height: 180px;
            overflow: hidden;
            /* background-color: orangered; */
        }
        
        body>div>img {
            width: 1600px;
            height: 200px;
            animation: walk 1s infinite step(4);
        }
        
        @keyframes walk {
            from {
                margin-left: 0px;
            }
            to {
                margin-left: -1600px;
            }
        }
    </style>
</head>

<body>
    <div>
        <img src="./west/wk.png" alt="">
    </div>
    <div>
        <img src="./west/ts.png" alt="">
    </div>
    <div>
        <img src="./west/bj.png" alt="">
    </div>
    <div>
        <img src="./west/ss.png" alt="">
    </div>
</body>

</html>